package com.sparrow.gate.redis.queue;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;

public class RedisMsgListener implements MessageListener
{
    private static final Logger LOGGER = LoggerFactory.getLogger(RedisMsgListener.class);

    @Override
    public void onMessage(Message message, byte[] pattern)
    {
        LOGGER.info("channel:" + new String(message.getChannel()) + ",message:" + new String(message.getBody()));
    }
}
